﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Hotjobs.aspx.cs" Inherits="Admin_Hotjobs"
    MasterPageFile="~/Admin/AdminMasterLogin.master" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <%--<script type="text/javascript" src="../jobsearchmenu.js"></script>--%>
    <%--
                <asp:DropDownList ID="DrpFilter" runat="server" Height="16px" Width="244px" 
                   
                    CausesValidation="True">
                    <asp:ListItem>Select All Registered User</asp:ListItem>
                    <asp:ListItem>Select Paid Users</asp:ListItem>
                    <asp:ListItem>Select Unpaid Users</asp:ListItem>
                </asp:DropDownList>
    <link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="css/grid.css" rel="stylesheet" type="text/css" />
    <link href="css/round.css" rel="stylesheet" type="text/css" />--%>
    
</asp:Content>
<asp:Content ContentPlaceHolderID="mainpanel" runat="server">
    <table style="width: 100%;">
       
        <tr>
            <td align="left">
                
                <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Post 
                Jobs</asp:LinkButton>
            </td>
            <td style="width:100px">
                
            </td>
            <td align="right">
               <asp:LinkButton Text="Previous Hot jobs" ID="prevHotjobs" runat="server" Font-Bold="True"
                    OnClick="prevHotjobs_Click"></asp:LinkButton>
            </td>
        </tr>      
        
        <tr>
            <td colspan="3" style="color: Red;" id="msg" runat="server" visible="false">
                <b>Sorry No Records Found !!!</b>
            </td>
        </tr>
        
        <tr>
            <td colspan="3" id="tdHotJobs" runat="server">
                <table style="width: 100%;">
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:GridView ID="DgridHotjobs" runat="server" AutoGenerateColumns="False" DataKeyNames="HotJobId"
                                CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                                OnRowCommand="DgridHotjobs_RowCommand" 
                                onselectedindexchanged="DgridHotjobs_SelectedIndexChanged">
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="HotJobId" HeaderText="HotJobId" Visible="False" />
                                    <asp:BoundField DataField="PostingId" HeaderText="PostingId" Visible="False" />
                                    <asp:BoundField DataField="PostingDate" HeaderText="Posting Date" />
                                    <asp:BoundField DataField="CompanyName" HeaderText="Company Name" />
                                    <asp:BoundField DataField="City" HeaderText="City" />
                                    <asp:BoundField DataField="ContactPerson" HeaderText="Contact Person" />
                                    <asp:BoundField DataField="ContactPersonPhone" HeaderText="Phone No" />
                                    <asp:TemplateField HeaderText="Email">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LnkEmail" runat="server" CommandName='ContactPersonEmail' CommandArgument='<%# Eval("ContactpersonEmail") %>'
                                                Text='<%# Eval("ContactPersonEmail") %>'></asp:LinkButton>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Status">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="ChkHotJobs" runat="server" Checked="true" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#E53333" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td align="right">
                            <asp:Button ID="BtnSaveHotJob" runat="server" Text="Save Hot Jobs" OnClick="BtnSaveHotJob_Click" />
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                
            </td>
            <td>
              
            </td>
            <td>
               
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="DgridPostedJobs" runat="server" CellPadding="4" ForeColor="#333333"
                    GridLines="None" Width="100%" AutoGenerateColumns="False" DataKeyNames="postingid"
                    AllowPaging="True" OnRowCommand="DgridPostedJobs_RowCommand" 
                    onrowdatabound="DgridPostedJobs_RowDataBound" 
                    onpageindexchanging="DgridPostedJobs_PageIndexChanging">
                    <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" />
                    <FooterStyle BackColor="#E53333" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="postingid" HeaderText="ID" Visible="False">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="PostingDate" HeaderText="Posting Date">
                            <ItemStyle HorizontalAlign="Left" Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CompanyName" HeaderText="Company Name">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="City" HeaderText="City">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ContactPerson" HeaderText="Contact Person">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                      <%--  <asp:BoundField DataField="ContactPersonPhone" HeaderText="Phone No" />--%>
                        <asp:TemplateField HeaderText="Email">
                            <ItemTemplate>
                                <asp:LinkButton ID="LnkEmail" runat="server" CommandName='Email' CommandArgument='<%# Eval("ContactpersonEmail") %>'
                                    Text='<%# Eval("ContactPersonEmail") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>                       
                          <asp:TemplateField HeaderText="View Details">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkviewall" runat="server" Text='<%# Bind("ViewDetails") %>'
                                    CommandName='ViewDetails' CommandArgument='<%# Eval("postingid") %>'>                                
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="Edit Job">
                            <ItemTemplate>
                                 <a href='NewJobPost.aspx?PostId=<%# DataBinder.Eval(Container, "DataItem.postingid") %>'>
                                    Edit Job</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="HotJobs">
                            <ItemTemplate>
                                <asp:CheckBox ID="ChkHotJobs" runat="server" Checked="false" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle BackColor="#E53333" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#E53333" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td align="right">
                &nbsp;
            </td>
            <td align="right">
                <asp:Button ID="BtnSave" runat="server" Text="Assign Hot Jobs" OnClick="BtnSave_Click"
                    Width="144px" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="3" id="JobpostingDetails" runat="server">
                <table style="width: 100%;" cellpadding="4px" cellspacing="4px">
                    <tr>
                        <td style="width: 137px;color:#ffffff" align="right" valign="top">
                            Education Level
                        </td>
                        <td style="width:5px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" style="color:#ffffff">
                    <%-- <% if (educationName != null) 
                           {%>--%>
                            <%= educationName%>
                            
                           <%-- <%} %>--%>
                           </td>
                        
                        
                        <td style="width: 137px;color:#ffffff" align="right" valign="top">
                           Country
                        </td>
                        <td style="width: 5px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" style="color:#ffffff">
                        <% if(Dreader!=null) 
                           {%>
                            <%=Dreader["Countryname"].ToString()%>
                            <%} %>
                        </td>
                        
                
                    </tr>
                    
                    <tr>
                    
                     <td align="right" valign="top" style="width: 137px;color:#ffffff">
                            Minimum Salary
                        </td>
                        <td style="width: 13px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" valign="top" style="color:#ffffff">
                        <% if(Dreader!=null) 
                           {%>
                            <%=Dreader["Minsalary"].ToString()%>
                            <%} %>
                        </td>
                        
                        <td align="right" valign="top" style="width: 137px;color:#ffffff">
                            Maximaum Salary
                        </td>
                        <td style="width: 13px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" valign="top" style="color:#ffffff">
                         <% if(Dreader!=null) 
                           {%>
                            <%=Dreader["Maxsalary"].ToString()%>
                            <%} %>
                        </td>
                    </tr>
                    
                    
                     <tr>
                        <td style="width: 137px;color:#ffffff" align="right" valign="top">
                            Minimum Exp
                        </td>
                        <td style="width: 5px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" style="color:#ffffff">
                         <% if (Dreader != null)
                            {%>
                            <%=Dreader["MinExp"].ToString()%>
                            <%} %>
                        </td>
                        
                        <td align="right" valign="top" style="width: 137px;color:#ffffff">
                            Maximum Exp
                        </td>
                        <td style="width: 13px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" valign="top" style="color:#ffffff">
                         <% if (Dreader != null)
                            {%>
                            <%=Dreader["MaxExp"].ToString()%>
                            <%} %>
                        </td>
                    </tr>
                    
                    
                    <tr>
                        <td style="width: 137px;color:#ffffff" align="right" valign="top">
                            Opening Date
                        </td>
                        <td style="width: 5px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" style="color:#ffffff">
                         <% if (Dreader != null)
                            {%>
                            <%=Dreader["OpeningDate"].ToString()%>
                            <%} %>
                        </td>
                        
                        <td align="right" valign="top" style="width: 137px;color:#ffffff">
                            Closing Date
                        </td>
                        <td style="width: 13px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" valign="top" style="color:#ffffff">
                         <% if (Dreader != null)
                            {%>
                            <%=Dreader["ClosingDate"].ToString()%>
                            <%} %>
                        </td>
                    </tr>
                    
                    
                     <tr>
                        
                        <td style="width: 137px;color:#ffffff" align="right" valign="top">
                            Deaprtment
                        </td>
                        <td style="width: 5px;color:#ffffff" valign="top">
                            :
                        </td>
                        
                        <td align="left" style="color:#ffffff">
                         <% if (Dreader != null)
                            {%>
                            <%=Dreader["Department"].ToString()%>
                            <%} %>
                        </td>
                        
                        
                        <td align="right" valign="top" style="width: 137px;color:#ffffff">
                           Functional Area
                        </td>
                        <td style="width: 13px;color:#ffffff" valign="top">
                            :
                        </td>
                        <td align="left" valign="top" style="color:#ffffff">
                         <% if (Dreader != null)
                            {%>
                            <%=Dreader["FunctionalArea"].ToString()%>
                            <%} %>
                        </td>
                    </tr>
                    
                    
                     <tr>
                        
                        <td style="width: 137px;color:#ffffff" align="right" valign="top">
                            Job Description</td>
                        <td style="width: 5px;color:#ffffff" valign="top">
                            :</td>
                        
                        <td align="left" colspan="4" style="text-align:justify;color:#ffffff">
                         <% if (Dreader != null)
                            {%>
                            <%=Dreader["JobDescription"].ToString()%></td>
                            <%} %>
                        
                        
                    </tr>
                    
                    
                     <tr>
                        
                        <td style="width: 137px;color:#ffffff" align="right" valign="top">
                            &nbsp;</td>
                        <td style="width: 5px;color:#ffffff" valign="top">
                            &nbsp;</td>
                        
                        <td align="left">
                            &nbsp;</td>
                        
                        
                        <td align="right" valign="top" style="width: 137px;color:#ffffff">
                            &nbsp;</td>
                        <td style="width: 13px;color:#ffffff" valign="top">
                            &nbsp;</td>
                        <td align="left" valign="top">
                            &nbsp;</td>
                    </tr>
                    
                    
                   
                    
                </table>
            </td>
        </tr>
        <tr>
            <td class="style6">
                &nbsp;
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
